package za.org.jcicada.cfgmngr.messages;

import java.net.URI;

import za.org.jcicada.genss.ServiceURN;
import za.org.jcicada.genss.messages.BaseMessage;

/**
 * DetachRequest.java
 *
 * @author Simon Cross
 *
 * Created on December 18, 2008, 14:26
 */

/**
 * A DetachRequest message.
 */
public class DeregisterServiceRequest extends BaseMessage {

    /**
     * Class serialization version id.
     */
    private static final long serialVersionUID = 1L;

    /**
     * URL of subsystem deregistering services
     */
    URI locationURI;

    /**
     * Service to be deregistered
     */
    ServiceURN serviceURN;

    /**
     * Create DeregisterServiceRequest message
     * 
     * @param result structure describing status of request
     */
    public DeregisterServiceRequest(URI locationURI, ServiceURN serviceURN) {
        this.locationURI = locationURI;
        this.serviceURN = serviceURN;
    }

    public URI getLocationURI() {
        return locationURI;
    }

    public ServiceURN getServiceURN() {
        return serviceURN;
    }

}
